Skip to main content

brushColor

Type

property

Summary

Specifies the color used to paint and to fill shapes in an image.

Syntax

set the brushColor to {<colorName> | <RGBColor>}

Description

Use the brushColor property to change the color used with the bucket, spray can, and brush paint tools, and for the interior of filled shapes.

If the brushPattern has been set since the last time the brushColor was set, the pattern is used instead of the color specified by brushColor. In other words, the last-set property takes priority.

Examples

set the brushColor to "blue"
set the brushColor to "#FFCC99"
set the brushColor to 127,127,255

glossary: property, hexadecimal, paint tool, integer, color reference

keyword: image, rectangle, roundRect, polygon, spray can, bucket, brush, oval, regular

property: backgroundColor, filled, lineSize, penColor, brushPattern

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?